import request from '@/utils/request'

// 查询资源详情信息列表
export function listResourcedetails(query) {
  return request({
    url: '/classai/resourcedetails/list',
    method: 'get',
    params: query
  })
}

// 查询资源详情信息详细
export function getResourcedetails(id) {
  return request({
    url: '/classai/resourcedetails/getInfo/' + id,
    method: 'get'
  })
}

// 新增资源详情信息
export function addResourcedetails(data) {
  return request({
    url: '/classai/resourcedetails/add',
    method: 'post',
    data: data
  })
}

// 修改资源详情信息
export function updateResourcedetails(data) {
  return request({
    url: '/classai/resourcedetails/edit',
    method: 'post',
    data: data
  })
}

// 删除资源详情信息
export function delResourcedetails(id) {
  return request({
    url: '/classai/resourcedetails/remove/' + id,
    method: 'get'
  })
}

